Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
Defining a slider
Next you’ll add a slider object to the window. A slider visually represents an
INTEGERvalue within some range. In this case, you’ll just make the slider show the same value as the Average Discount field, but as a percentage between 0 and 50.
![]()
To define a slider:
- Select the Slider icon from the Palette:
![]()
- Drop it onto the design window to the right of the Average Discount field.
- Change the Object name to iDiscPct. You’ll see that the Label field is not enabled for the slider because a slider cannot have a label.
- Go into the property sheet for the slider and change the attribute values, as described in Table 9–1.
When you are done, the property sheet should look like this:
![]()
- Click OK after making these changes.
- You want the slider value to display along with the other extra fields at the bottom of the window each time the user selects a browse row, so edit the
VALUE-CHANGEDtrigger for the browse and replace the line that assigns the dAvgDisc field and theDISPLAYstatement that follows it with these lines:
- You can make the slider tall enough to show the percentage value above the slider itself, or shrink it down vertically so that it just shows the slider itself. It should show the same value as the Average Discount field it’s next to:
![]()
Looking at the code for a slider
Here is the AppBuilder-generated code for the slider:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |